Search the Community
Showing results for tags '[guide]'.
Found 1 result
-
using System;using System.Diagnostics;using System.Drawing;using System.Net;using System.Threading;using System.Windows.Forms;namespace GTA_SA_Release_Notify{ internal class Program { private static void Main() { var wc = new WebClient(); Reset: string page = wc.DownloadString(new Uri("https://play.google.com/store/apps/developer?id=Rockstar+Games,+Inc.")); //Download page Console.WriteLine("Checked on " + DateTime.Now.ToString("HH:mm:ss tt")); if (page.Contains("San Andreas")) //Parse it { Console.WriteLine("Released on " + DateTime.Now.ToString("HH:mm:ss tt")); ShowBalloon("San Andreas is here", "Click to open"); return; //Exit app } Thread.Sleep(600000); //Wait before loading it again goto Reset; //Do all again } private static void ShowBalloon(string title, string body) //Notification { var notifyIcon = new NotifyIcon {Visible = true, Icon = SystemIcons.Application}; notifyIcon.Click += notifyIcon_Click; if (title != null) { notifyIcon.BalloonTipTitle = title; } if (body != null) { notifyIcon.BalloonTipText = body; } notifyIcon.ShowBalloonTip(30000); } private static void notifyIcon_Click(object sender, EventArgs e) //Open webpage { Process.Start("https://play.google.com/store/apps/developer?id=Rockstar+Games,+Inc."); } }}Press like to get more fine tutorials from me